#ifndef THREADBASE_H
#define THREADBASE_H

#include <QObject>
#include <QRunnable>
#include <QThread>
#include "src/Utils/dbconnhelper.h"
#include "src/Entity/clientdefect.h"
#include "src/Utils/inifilehelper.h"
#include <QMutex>

//查询各个相机线程
class ClientDefectThread : public QThread
{
    Q_OBJECT
public:
    ClientDefectThread(int seq, SteelInfo *s);

signals:
    void ClientDefectFinish( SteelInfo *);
public:
    void run();

public:
    DbConnHelper dbhelper;
    QSqlDatabase db;
private:

    int sequences;
    SteelInfo *steel;

};




//钢板信息线程
class SteelThread : public QThread
{
    Q_OBJECT

public:
    SteelThread(int seq, SteelInfo *s);

public:
    void run();

    DbConnHelper dbhelper;
    QSqlDatabase db;
signals:
    void SteelinfoBaseChanged(int seq ,SteelInfo * steel);

private:

    int sequences;
    SteelInfo *steel;
};

#endif // THREADBASE_H
